package com.muchenx.util;

import java.util.Objects;

public final class Util {

    public static boolean isDigit(String num) {
        if (Objects.isNull(num)) {
            return false;
        }
        return num.chars().allMatch(Character::isDigit);
    }
}
